import QtQuick
import QtQuick.Controls

Window {
    width: 640
    height: 480
    visible: true
    title: qsTr("基本用法")

    ComboBox {
        id: basicComboBox
        anchors.centerIn: parent
        width: 200

        model: ["选项1", "选项2", "选项3", "选项4"]

        onActivated: {
            console.log("当前选择:", currentText)
        }
    }
}
